export interface CreateOrUpdateNewsRequestData {
  id?: string | undefined
  title: string
  title_en?: string
  type: string
  content: string
  content_en?: string
  publish_date: string
  author: string
  author_en?: string
  cover_url: string
  cover_url_en?: string
  tags?: string
  tags_en?: string
  abstract?: string
  abstract_en?: string
}

export interface GetNewsRequestData {
  /** 当前页码 */
  page: number
  /** 查询条数 */
  size: number
  /** 查询参数：新闻类型 */
  type?: string
  /** 查询参数：标题 */
  title?: string
}

export interface GetNewsDetailRequestData {
  /** 详情id */
  id: string
}

export interface GetNewsData {
  id: string
  title: string
  type: string
  content: string
  publish_date: string
  author: string
  cover_url: string
  tags?: string
  abstract?: string
  title_en?: string
  content_en?: string
  author_en?: string
  cover_url_en?: string
  tags_en?: string
  abstract_en?: string
}
export type GetNewResponeseDetailData = ApiResponseData<GetNewsData>

export type GetNewsResponseData = ApiResponseData<{
  list: GetNewsData[]
  total: number
  page: number
}>
